package com.qujia.station.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class WarehouseDetails implements Serializable {

    @ApiModelProperty("入库详情记录id")
    private Long warehouseId;

    @ApiModelProperty("入库批次id")
    private Long batchId;

    @ApiModelProperty("商品id")
    private Long commodityId;

    @ApiModelProperty("商品名")
    private String commodityName;

    @ApiModelProperty("商品编码")
    private String commodityCode;

    @ApiModelProperty("油企id")
    private Long enterpriseId;

    @ApiModelProperty("油企名称")
    private String enterpriseName;

    @ApiModelProperty("油站id")
    private Long stationId;

    @ApiModelProperty("油站名称")
    private String stationName;

    @ApiModelProperty("分类id")
    private Long categoryId;

    @ApiModelProperty("商品分类名")
    private String categoryName;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("入库数量")
    private Long inventoryQuantity;

    @ApiModelProperty("单价，对应商品销售价格")
    private BigDecimal salePrice;

    @ApiModelProperty("总价")
    private BigDecimal totalPrice;

    private String createUser;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("商品条形码")
    private String barCode;

    @ApiModelProperty("入库详情记录")
    private List<WarehouseDetails> warehouseList;

    @ApiModelProperty("商品总数")
    private Long commodityNum;

    @ApiModelProperty("商品总额")
    private BigDecimal commodityPrice;

    @TableField(exist = false)
    @ApiModelProperty("开始时间")
    private String beginTime;

    @TableField(exist = false)
    @ApiModelProperty("结束时间")
    private String endTime;

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName == null ? null : commodityName.trim();
    }

    public String getCommodityCode() {
        return commodityCode;
    }

    public void setCommodityCode(String commodityCode) {
        this.commodityCode = commodityCode == null ? null : commodityCode.trim();
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName == null ? null : enterpriseName.trim();
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName == null ? null : stationName.trim();
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName == null ? null : categoryName.trim();
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public Long getInventoryQuantity() {
        return inventoryQuantity;
    }

    public void setInventoryQuantity(Long inventoryQuantity) {
        this.inventoryQuantity = inventoryQuantity;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public List<WarehouseDetails> getWarehouseList() {
        return warehouseList;
    }

    public void setWarehouseList(List<WarehouseDetails> warehouseList) {
        this.warehouseList = warehouseList;
    }

    public Long getCommodityNum() {
        return commodityNum;
    }

    public void setCommodityNum(Long commodityNum) {
        this.commodityNum = commodityNum;
    }

    public BigDecimal getCommodityPrice() {
        return commodityPrice;
    }

    public void setCommodityPrice(BigDecimal commodityPrice) {
        this.commodityPrice = commodityPrice;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}